﻿using Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.Repository
{
    public interface ISSRepository
    {
        /// <summary>
        /// 查询全部
        /// </summary>
        /// <returns></returns>
        Task<List<SS>> SelectSSAsync();

        /// <summary>
        /// 查询是否复核的
        /// </summary>
        /// <returns></returns>
        SSFenYE FenYeSSAsync(string CheckStatus, int page, int pageSize);
        /// <summary>
        /// 登记
        /// </summary>
        /// <param name="SS"></param>
        /// <returns></returns>
        Task<bool> AddSSAsync(SS ss);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="SS"></param>
        /// <returns></returns>
        Task<bool> UpdateSSAsync(SS ss);
        /// <summary>
        ///  实现条件查询和时间段查询
        /// </summary>
        /// <param name="StandardId"></param>
        /// <param name="gzc"></param>
        /// <param name="startDate"></param>
        /// <param name="endDate"></param>
        /// <returns></returns>
        SSFenYE DateSSAsync(string StandardId, string gzc, DateTime startDate, DateTime endDate,int page, int pageSize, string ChangeStatus);
        /// <summary>
        /// 实现变更
        /// </summary>
        /// <param name="ss"></param>
        /// <returns></returns>
        Task<bool> UpdateSSDesignerAsync(SS ss);

		Task<string> SelectById(int id);

        Task<SS> SelectSalarySum(string id);



	}
}
